<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>霍智博</title>
</head>
<body>
        <h1>181164365霍智博</h1>
        <div id="box">box</div>
        <div class="bar">bar</div>
        <div name="main">main</div>
        <script>
            console.log(document.getElementById('box'));
            console.log(document.getElementsByClassName('bar'));
            console.log(document.getElementsByTagName('div'));
            console.log(document.getElementsByName('main'));
        </script>
</body>
</html>